/*
 * 跨店消费基础查询类
 * @author: huangzong
 */
const C = require('../common/common.js')

class CrossShop {
    constructor() {}
    // 获取当前店所有跨店消费的客户订单
    async getOtherShopGuestOrder (filter) {  
        return await C.ajax('/shop/crossShop/getOtherShopGuestOrder', filter)
    }

    // 获取当前店的客户的跨店消费记录
    async getGuestOrderInOtherShop (filter) {
        return await C.ajax('/shop/crossShop/getGuestOrderInOtherShop', filter)
    }

    // 获取所有分店列表
    async getOtherShopList () {
        return await C.ajax('/shop/crossShop/getOtherShopList')
    }

    async getOtherShopGuestOrderInfo (filter) {
        return await C.ajax('/shop/crossShop/getOtherShopGuestOrderInfo', filter)
    }
    
    async getGuestOrderInOtherShopInfo (filter) {
        return await C.ajax('/shop/crossShop/getGuestOrderInOtherShopInfo', filter)
    }
}

module.exports = new CrossShop()